transLit

fun Any?.transLit(literalFallback: String = ""): MutableText

Translates anything. If the thing is Translatable, it will use the built in translation, otherwise it will use the fallback literally

Receiver

Anything, null or not. Translatable will provide its translation.

Return

MutableText translation based on the receivers translation, or the fallback

Author

fzzyhmstrs

Since

0.2.0

Parameters

literalFallback

String - the fallback text, used literally, not as a translation key